import httpRequest from './index'

export function getList(params) {
  return httpRequest({
    url: '/articles',
    method: 'get',
    params,
  })
}

export function getDetail(params) {
  return httpRequest({
    url: '/articles/read',
    method: 'get',
    params,
  })
}

export function searchArticle(params) {
  return httpRequest({
    url: '/articles/search',
    method: 'post',
    data: params,
  })
}
